package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 装作者管理对象 creator
 * 
 * @author ruoyi
 * @date 2024-10-24
 */
public class Creator extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** UserID */
    @Excel(name = "UserID")
    private String UserId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String name;

    /** 头像 */
    @Excel(name = "头像")
    private String img;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 创作等级 */
    @Excel(name = "创作等级")
    private String level;

    /** 长视频数量 */
    @Excel(name = "长视频数量")
    private Long longvideo;

    /** 短视频数量 */
    @Excel(name = "短视频数量")
    private Long shortvideo;

    /** 在线状态 */
    @Excel(name = "在线状态")
    private Long onlinestate;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(String UserId) 
    {
        this.UserId = UserId;
    }

    public String getUserId() 
    {
        return UserId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setLongvideo(Long longvideo) 
    {
        this.longvideo = longvideo;
    }

    public Long getLongvideo() 
    {
        return longvideo;
    }
    public void setShortvideo(Long shortvideo) 
    {
        this.shortvideo = shortvideo;
    }

    public Long getShortvideo() 
    {
        return shortvideo;
    }
    public void setOnlinestate(Long onlinestate) 
    {
        this.onlinestate = onlinestate;
    }

    public Long getOnlinestate() 
    {
        return onlinestate;
    }
    public void setCreatedate(Date createdate) 
    {
        this.createdate = createdate;
    }

    public Date getCreatedate() 
    {
        return createdate;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("UserId", getUserId())
            .append("name", getName())
            .append("img", getImg())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("level", getLevel())
            .append("longvideo", getLongvideo())
            .append("shortvideo", getShortvideo())
            .append("onlinestate", getOnlinestate())
            .append("createdate", getCreatedate())
            .append("state", getState())
            .toString();
    }
}
